import matplotlib.pyplot as plt
score = [70,94,63,101,87,78,60,56,77,99,107,79,88,69,90,102,75,86,91,43,90,65,40,81]
plt.rcParams['font.sans-serif']=['SimHei']
plt.xlabel('分数')
plt.ylabel('学生数量')
plt.title('学生语文成绩分布直方图')
plt.hist(score,bins=range(0,150,10),facecolor='blue',edgecolor='red')
plt.show()